package Four;

import java.util.Comparator;

 class Ecomparator implements Comparator<Employee>{
	
		 public int compare(Employee o1, Employee o2) {
				if(o1.equals(o2)){
					return 0;
				}
				else if(o1.birthday.getTime()>o2.birthday.getTime()){
					return -1;
				}
				else if(o1.birthday.getTime()<o2.birthday.getTime()){
					return 1;
				}
				else
				return 0;
			}
	
	}

